package com.food.user.exception.foodInfoException;

public enum FoodInfoExceptionCode {
    FOODINFO_IS_EXIST(6001,"该菜品已存在！"),
    FOODINFO_NOT_EXIST(6002,"该菜品不存在！"),
    FOODINFO_BOTH_ERROR(6003,"该菜品不存在或没有上架");
    Integer code;
    String message;

    FoodInfoExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode(){return code;}
    public String getMessage(){return message;}
}
